/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

@import '../link/mixins';

.ouiHeaderLogo {
  @include ouiLink;

  position: relative;
  height: $ouiHeaderChildSize;
  line-height: $ouiHeaderChildSize;
  min-width: $ouiHeaderChildSize + 1px;
  padding: 0 ($ouiSizeM + 1px) 0 $ouiSizeM;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  white-space: nowrap;

  &:focus,
  &:hover {
    text-decoration: none;
  }
}

.ouiHeaderLogo__text {
  @include ouiTitle('s');
  padding-left: $ouiSize;
  font-weight: $ouiFontWeightLight;
}

@include ouiBreakpoint('xs') {
  .ouiHeaderLogo {
    padding: 0 $ouiSizeM;
  }

  .ouiHeaderLogo__icon.ouiIcon--xLarge {
    width: $ouiSizeL;
    height: $ouiSizeL;
  }

  .ouiHeaderLogo__text {
    @include ouiTitle('xs');
    font-weight: $ouiFontWeightRegular;
  }
}
